﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FluentNHibernate.Mapping;
using SimpleScrum.Core.Entities;

namespace SimpleScrum.Core.Mappings
{
    public class WebpagesOAuthMembershipMap : ClassMap<WebpagesOAuthMembership>
    {
        public WebpagesOAuthMembershipMap()
        {
            Table("webpages_OAuthMembership");
            //LazyLoad();
            References(x => x.UserId).Column("UserId").Cascade.All();
            Id(x => x.Provider).Column("Provider");
            Id(x => x.ProviderUserId).Column("ProviderUserId");
        }
    }
}
